<?php

abstract class Mozg_Mapper_Data
{
	private $_errorMessage;
	private $_isError = false;
	
	protected $_entityPath = 'default';
	protected $_filterPath = 'filter';

	public function __construct()
	{
		
	}
	
    public function GetErrorMessage()
    {
		return $this->_errorMessage;
    }
    
    protected function SetErrorMessage($message)
    {
    	$this->SetErrorStatus(true);
		$this->_errorMessage = $message;
		return false;
    }
    
    protected function SetErrorStatus($flag)
    {
    	$this->_isError = $flag;
    }
    
    public function IsError()
    {
    	return $this->_isError;
    }
	
    public function GetEntity($data = null)
    {
    	return Mozg_Entity::Get($this->_entityPath, $data);
    }
    
    public function GetFilter($data = array())
    {
    	return Mozg_Entity::Get($this->_filterPath, $data);
    }
    
}